package com.guodx.study.springboot.d01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class Hello {

    @ResponseBody
    @GetMapping("/hello/{name}")
    public String hello(@PathVariable("name") String name){
        return "hello, " + name;
    }

}
